<template>
	<view class="container">
		<!-- 头部轮播 -->
		<view class="carousel-section">
			<view class="carousel" circular @change="swiperChange" autoplay="true" interval="3000">
				<view class="carousel-item" >
					<image :src="picUrl" mode="aspectFit"/>
				</view>
			</view>
		</view>
		<!-- <view class="function">
			<view class="functioncontent">
				<view v-for="(item, index) in functions" :key="index" style="" @click="goto(item)" class="functionitem">
					<view style="height: 95rpx;">
						<image :src="item.icon" style="width: 85rpx;height: 85rpx;"></image>
					</view>
					<view style="font-size: 26rpx;letter-spacing: 1rpx;"><text>{{item.name}}</text></view>
				</view>
			</view>
		</view> -->
		<!-- <view class="third">
			<view class="thirdcontent">
				<view class="rechargeAndHexiao">
					<image src="/static/recharge.png" @click="toChuzhi"></image>
				</view>
				<view class="rechargeAndHexiao">
					<image src="http://qsg.wuminginfo.com/1130/douyin.png" @click="douyinHexiao"></image>
				</view>
			</view>
		</view> -->
		<view class="main-func-content">
			<view class="jiameng-content" @click="toStoreList">
				<image src="/static/index/yuyue.png" style="width: 150rpx;height: 150rpx;margin-bottom: 10rpx;">
				</image>
				<text class="main-title">立即预约</text>
				<text class="sub-title">线上好友,快乐畅玩</text>
			</view>
			<view class="tuancan-content" @click="toAssistantList">
				<image src="/static/index/qiehuan.png" style="width: 150rpx;height: 150rpx;margin-bottom: 10rpx;">
				</image>
				<text class="main-title">附近助教</text>
				<text class="sub-title">精彩就在你身边</text>
			</view>
		</view>
		<view class="zhaoshang-content">
			<swiper class="zhaoshang-swiper" circular @change="swiperChange" autoplay="true" interval="3000">
				<swiper-item v-for="(item, index) in images" :key="index"
					@click="toZhaoshang()">
					<image :src="item.picUrl" style="height: 200rpx;" mode="aspectFit"/>
				</swiper-item>
			</swiper>
		</view>
		<view class="cate-section">
			<view class="cate-item" @click="toChuzhi()" style="margin-right: 10rpx;">
				<image src="/static/index/chuzhi.png" style="width: 150rpx;height: 150rpx;">
				</image>
				<text class="main-title">储值有礼</text>
				<text class="sub-title" style="margin-bottom: 30rpx;">充的越多,送的越多</text>
			</view>
			<view class=""></view>
			<view class="cate-item">
				<view class="chuzhi-item" @click="meituanHexiao">
					<view class="chuzhi-img">
						<image src="/static/index/meituan.png" style="width: 100rpx;height: 100rpx;"></image>
					</view>
					<view class="chuzhi-desc">
						<text class="main-title">美团验券</text>
						<text class="sub-title">团购更优惠</text>
					</view>
				</view>
				<view class="common-split"></view>
				<view class="jifen-item" @click="douyinHexiao">
					<view class="jifen-img">
						<image src="/static/index/douyin.png" style="width: 100rpx;height: 100rpx;"></image>
					</view>
					<view class="jifen-desc">
						<text class="main-title">抖音验券</text>
						<text class="sub-title">超低折扣等你来</text>
					</view>
				</view>
			</view>
		</view>
		<view style="height: 80rpx;display: flex;">
			<view class="search-block">
				<view class="searchimg">
					<image src="http://qsg.wuminginfo.com/search.png"></image>
				</view>
				<input type="text" @input="onInput" value="" placeholder="搜索门店" v-model="query" class="search-text"
					maxlength="10" />
			</view>
		</view>
		<view class="cut"></view>
		<view class="video-list">
					<!--  v-html="brightenKeyword(item.name,query)" -->
					<view class="video-content" v-for="(item, ind) in mendian" :key="ind"
						@click="goDevice(item.id,item.name,item.distance)">
						<view class="storelist">
							<image src="/static/1.jpg" mode="aspectFit"></image>
						</view>
						<!-- 门店列表右部开始 -->
						<view class="video-describe">
							<view class="video-tit">
								<text>{{item.name}}</text>
							</view>
							<view style="display: flex;width: 210rpx;">
								<view class="online" v-if="item.onlineStatus=='正在营业'">
									<text>正在营业</text>
								</view>
								<view class="renovation" v-if="item.onlineStatus=='正在装修'">
									<text>正在装修</text>
								</view>
								<view class="renovation" v-if="item.onlineStatus=='暂未营业'">
									<text>暂未营业</text>
								</view>
								<view class="tag">
									<text>接收预订</text>
								</view>
							</view>
							<view style="height: 38rpx;"></view>
							<!-- 地址时间开始 -->
							<view class="video-reader">
								<!-- 时间 -->
								<text class="iconfont" style="font-size: 24rpx;color: #828282;">&#xe603;</text>
								<text class="timeoraddress">营业时间:{{item.onlineTime}}</text>
							</view>
							<view class="video-reader">
								<!-- 地址 -->
								<text class="iconfont" style="font-size: 24rpx;color: #828282;">&#x10132;</text>
								<text class="timeoraddress">{{item.addressLat}}</text>
							</view>
						</view>
						<view class="right">
							<view class="righticon">
								<text class="iconfont"
									@click.stop="toAddress(item.addressLat,item.name,item.longitude,item.latitude)">&#xe632;</text>
								<text class="iconfont" style="margin-left: 20rpx;"
									@click.stop="call(item.servicePhone)">&#xe60d;</text>
							</view>
							<view class="distance">
								<text>{{item.distance}}km</text>
							</view>
						</view>
					</view>
					<view style="height: 50rpx;"></view>
				</view>
				<uni-popup ref="tishi" :mask-click="false" type="center">
					<view class="unipopup">
						<view>
							<view class="tip-content">
								<text class="tip-title">
									我们仅提供场地及响应设备,使用人须遵守治安管理条例，违者由使用人自行承担相应的责任和后果
								</text>
							</view>
							<view class="secondtxt">
								<text>
									1、严禁未成年人进入场所
									2、严禁黄、赌、毒、打架斗殴等一切违法活动
									3、破坏或带走本场所提供的设备需照价赔偿
									4、请自行保管好私人物品，如有遗失概不负责
								</text>
							</view>
							<!-- <view class="secondtxt">
								<text>好评截图、加盟扫码添加微信</text>
							</view> -->
						</view>
						<!-- <view class="wximage">
							<image class="wimage" src=""></image>
						</view> -->
						<view class="buttomafrim" @click="closeTishi()"><text>我已了解</text></view>
					</view>
				</uni-popup>
	</view>
</template>

<script>
	import qqmapsdk from '@/common/qqmap-wx-jssdk';
	const QQMapWX = new qqmapsdk({
		key: 'T3CBZ-TNG3U-52FVX-GMNKK-XCN7Z-WVBWY' //你的key
	});
	import Api from '@/common/api';
	import {
		mapState,
		mapMutations
	} from 'vuex';
	import {
		formatDate
	} from '@/common/date';
	export default {
		components: {},
		computed: {
			...mapState(['hasLogin', 'userInfo'])
		},
		data() {
			return {
				city: '全部',
				swiperCurrent: 0,
				swiperLength: 0,
				banners: [],
				mendian: [],
				functions: [{
						name: '开启大门',
						icon: 'http://qsg.wuminginfo.com/1130/opanDamen.png',
						val: 0
					},
					{
						name: '开包厢门',
						icon: 'http://qsg.wuminginfo.com/1130/openBaoxiang.png',
						val: 0
					},
					{
						name: '立即续费',
						icon: 'http://qsg.wuminginfo.com/1130/xufei.png',
						val: 0
					},
					{
						name: '美团核销',
						icon: 'http://qsg.wuminginfo.com/1130/meituan.png',
						val: 0
					}
				],
				query: '',
				picUrl:'http://qsg.wuminginfo.com/zhangcai.jpg',
				images: [{
						picUrl: '/static/index/3.jpg',
						url: '',
						type: 0
					}
				]
			};
		},
		onShow() {
			this.getLocation();
		},
		onLoad() {
			this.getAllStore();
			this.panduan();
			this.loadData();
		},
		filters: {},
		onShareAppMessage(res) {
			if (!this.hasLogin) {
				uni.redirectTo({
					url: '/pages/public/login'
				});
				return false;
			}
			var that = this;
			let memberId = that.userInfo.userInfo.id;
			// 设置菜单中的转发按钮触发转发事件时的转发内容
			var shareObj = {
				title: "撞彩台球", // 默认是小程序的名称(可以写slogan等)
				path: '/pages/index/index?fromMemberId=' + memberId, // 默认是当前页面，必须是以‘/’开头的完整路径
				imageUrl: '', //自定义图片路径，可以是本地文件路径、代码包文件路径或者网络图片路径，支持PNG及JPG，不传入 imageUrl 则使用默认截图。显示图片长宽比是 5:4
				success: function(res) {
					// 转发成功之后的回调
					if (res.errMsg == 'shareAppMessage:ok') {
						that.$core.msg("分享成功.");
					}
				},
				fail: function() {
					// 转发失败之后的回调
					if (res.errMsg == 'shareAppMessage:fail cancel') {
						// 用户取消转发
						that.$core.msg("取消分享.");
					} else if (res.errMsg == 'shareAppMessage:fail') {
						// 转发失败，其中 detail message 为详细失败信息
						that.$core.msg("分享失败,请稍后再试.");
					}
				},
				complete: function() {
					// 转发结束之后的回调（转发成不成功都会执行）
				}
			}
			return shareObj
		},
		methods: {
			...mapMutations(['login', 'logout']),
			toStoreList(){
				uni.navigateTo({
					url:'/pages/store/storeList'
				})
			},
			toAssistantList(){
				uni.navigateTo({
					url:'/pages/assistant/assistant'
				})
			},
			panduan() {
				uni.getStorage({
					key: "popUp-show-time",
					success: (res) => {
						if(!res.data){
							this.$refs.tishi.open('center')
						}else{
							if(new Date().getTime() - res.data > 1000 * 60 * 60 * 1){
								this.$refs.tishi.open('center')
							}
						}
					},
					fail: (err) => {
						this.$refs.tishi.open('center')
					},
				});
			
			},
			closeTishi() {
				this.$refs.tishi.close()
				uni.setStorage({
					key: "popUp-show-time",
					data: new Date().getTime(),
				});
			},
			async loadData() {
				let that = this;
				let data = await Api.apiCall('get', Api.qsg.indexBanner, {});
				if (data) {
					that.banners = data;
					that.swiperLength = that.banners.length;
				}
			},
			toZhaoshang() {
				uni.navigateTo({
					url: '/pages/jiameng/jiameng'
				})
			},
			onInput(e) {
				let query = e.detail.value;
				this.getStoreByQuery(query);
			},
			async getStoreByQuery(text) {
				let params = {
					longitude: uni.getStorageSync('longitude'),
					latitude: uni.getStorageSync('latitude'),
					storeName: text,
					parentStoreId:Api.STORE_ID
				}
				console.log(params)
				if (typeof uni.getStorageSync('longitude') == 'undefined') {
					params = {
						storeName: text,
						parentStoreId:Api.STORE_ID
					}
				}
				let result = await Api.apiCall('get', Api.qsg.getAllStore, params);
				if (result) {
					console.log(result)
					this.mendian = result;
				}
			},
			meituanHexiao(){
				if (!this.hasLogin) {
					uni.navigateTo({
						url: '/pages/public/login'
					})
					return;
				}
				uni.navigateTo({
					url: '/pages/meituan/hexiao'
				})
			},
			goto(item) {
				if (!this.hasLogin) {
					uni.navigateTo({
						url: '/pages/public/login'
					})
					return;
				}
				if (item.name == '美团核销') {
					uni.navigateTo({
						url: '/pages/meituan/hexiao'
					})
				}
				if (item.name == '开包厢门') {
					this.openBoxiangDoor();
				}
				if (item.name == '开启大门') {
					this.openDamen();
				}
				if (item.name == '立即续费') {
					uni.switchTab({
						url: '/pages/order/coachOrder'
					})
				}
			},
			async openBoxiangDoor() {
				let data = await Api.apiCall('get', Api.qsg.openBaoxiang, {});
				if (data) {
					let that = this;
					if (data == 1) {
						uni.showModal({
							title: '提示',
							showCancel: false,
							content: '没有订单可开启包厢门.',
							success: function(res) {}
						});
					} else {
						uni.showModal({
							title: '提示',
							showCancel: false,
							content: '操作成功.',
							success: function(res) {}
						});
					}

				}
			},
			async openDamen() {
				let data = await Api.apiCall('get', Api.qsg.openDamen, {});
				if (data) {
					let that = this;
					if (data == 1) {
						uni.showModal({
							title: '提示',
							showCancel: false,
							content: '没有订单可开启大门.',
							success: function(res) {}
						});
					} else {
						uni.showModal({
							title: '提示',
							showCancel: false,
							content: '操作成功.',
							success: function(res) {}
						});
					}
				}
			},
			toAddress(address, name, longitude, latitude) {
				//此处item是 你获取到的当前点击的那一条数据  方法里面需要用到 名称  地址 经纬度
				uni.openLocation({
					latitude: Number(latitude), //目标纬度
					longitude: Number(longitude), //目标经度
					name: name, //名称
					address: address, //地址
					scale: 28
				});
			},
			call(mobile) {
				if (typeof(mobile) == 'undefined' || mobile == '') {
			
				} else {
					uni.makePhoneCall({
						phoneNumber: mobile,
						success: function() {},
						fail() {}
					})
				}
			},
			douyinHexiao() {
				if (!this.hasLogin) {
					uni.navigateTo({
						url: '/pages/public/login'
					})
					return;
				}
				let url = '/pages/douyin/hexiao';
				uni.navigateTo({
					url: url
				})
			},
			goDevice(id, name, distance) {
				if (this.type == 'chongzhi') {
					uni.navigateTo({
						url: '/pages/money/recharge?storeId=' + id
					})
				} else if (this.type == 'duihuan') {
					let params = {
						id: id,
						name: name
					}
					uni.$emit('store', params);
					uni.navigateBack({
						delta: 1
					})
				} else {
					console.log('距离'+distance)
					uni.navigateTo({
						url: '/pages/meallist/selectRoom?storeId=' + id + '&distance=' + distance
					})
				}
			},
			toStore() {
				uni.navigateTo({
					url: '/pages/store/storeList'
				})
			},
			//轮播图切换修改背景色
			swiperChange(e) {
				const index = e.detail.current;
				this.swiperCurrent = index;
			},
			// 定位授权
			getLocation() {
				let that = this;
				// 1、判断手机定位服务【GPS】 是否授权
				uni.getSystemInfo({
					success(res) {
						console.log("判断手机定位服务是否授权:", res);
						let locationEnabled = res.locationEnabled; //判断手机定位服务是否开启
						let locationAuthorized = res.locationAuthorized; //判断定位服务是否允许微信授权
						if (locationEnabled == false || locationAuthorized == false) {
							//手机定位服务（GPS）未授权
							uni.showToast({
								title: "请打开手机GPS",
								icon: "none",
							});
						} else {
							//手机定位服务（GPS）已授权
							// 2、判断微信小程序是否授权位置信息
							// 微信小程序已授权位置信息
							uni.authorize({
								//授权请求窗口
								scope: "scope.userLocation", //授权的类型
								success: (res) => {
									that.getLocationInfo();
								},
								fail: (err) => {
									err = err["errMsg"];
									uni
										.showModal({
											content: "需要授权位置信息",
											confirmText: "确认授权",
										})
										.then((res) => {
											console.log(res);
											if (res[1]["confirm"]) {
												uni.openSetting({
													success: (res) => {
														if (res.authSetting[
																"scope.userLocation"
															]) {
															// 授权成功
															uni.showToast({
																title: "授权成功",
																icon: "none",
															});
															that.getLocationInfo();
														} else {
															// 未授权
															uni.showToast({
																title: "授权失败,请重新授权",
																icon: "none",
															});
															uni.showModal({
																title: "授权",
																content: "获取授权" +
																	authouName +
																	"失败,是否前往授权设置？",
																success: function(
																	result
																) {
																	if (result
																		.confirm
																	) {
																		uni
																			.openSetting();
																	}
																},
																fail: function() {
																	uni.showToast({
																		title: "系统错误！",
																		icon: "none",
																	});
																},
															});
														}
													},
												});
											}
											if (res[1]["cancel"]) {
												// 取消授权
												uni.showToast({
													title: "你拒绝了授权，无法获得周边信息",
													icon: "none",
												});
											}
										});
								},
								complete(res) {
									// console.log('授权弹框', res);
									// if (res.errMsg == "authorize:ok") {
									// 	that.getLocationInfo();
									// } else {
									// 	uni.showModal({
									// 		title: "授权",
									// 		content: "获取授权" + authouName + "失败,是否前往授权设置？",
									// 		success: function(result) {
									// 			if (result.confirm) {
									// 				uni.openSetting();
									// 			}
									// 		},
									// 		fail: function() {
									// 			uni.showToast({
									// 				title: "系统错误！",
									// 				icon: "none",
									// 			});
									// 		},
									// 	});
									// }
									// 解析地址
									QQMapWX.reverseGeocoder({
										location: {
											latitude: uni.getStorageSync('latitude'),
											longitude: uni.getStorageSync('longitude')
										},
										success: function(res) {
											console.log("解析地址成功");
											console.log(res);
											// 省
											let province = res.result.ad_info.province;
											// 市
											let city = res.result.ad_info.city;
											// that.city = city;
											console.log(province);
											console.log(city);
										},
										fail: function(res) {
											// uni.showToast({
											//     title: '定位失败',
											//     duration: 2000,
											//     icon: "none"
											// })
										},
										complete: function(res) {
											console.log(res);
										}
									})
								},
							});
						}
					},
				});
			},
			getLocationInfo() {
				let that = this;
				uni.getLocation({
					type: 'gcj02',
					success(res) {
						console.log(res);
						uni.setStorageSync('longitude', res.longitude);
						uni.setStorageSync('latitude', res.latitude);
						that.getAllStore();
					},
					fail: function(res) {
						console.log(res);
					}
				});
			},
			toChuzhi() {
				if (!this.hasLogin) {
					uni.showModal({
						title: '提示',
						content: '请先授权登录.',
						success: function(res) {
							if (res.confirm) {
								uni.redirectTo({
									url: '/pages/public/login'
								});
							} else if (res.cancel) {

							}
						}
					});
				} else {
					uni.navigateTo({
						url: '/pages/store/storeList?type=chongzhi'
					})
				}
			},
			async getAllStore() {
				let params = {
					longitude: uni.getStorageSync('longitude'),
					latitude: uni.getStorageSync('latitude'),
					parentStoreId:Api.STORE_ID
				}
				console.log(params)
				if (typeof uni.getStorageSync('longitude') == 'undefined') {
					params = {
						parentStoreId:Api.STORE_ID
					}
				}
				let result = await Api.apiCall('get', Api.qsg.getAllStore, params);
				if (result) {
					console.log(result)
					this.mendian = result;
				}
			},
		}
	};
</script>
<style lang="scss">
	.cut {
		height: 10rpx;
		width: 100%;
		background-color: #dfddde;
	}
	
	.timeoraddress {
		height: 21rpx;
		line-height: 21rpx;
		margin-left: 8rpx;
		font-size: 24rpx;
		font-family: Source Han Sans CN;
		color: #000000;
	}
	
	.firsttxt {
		text-indent: 30rpx;
		font-size: 28rpx;
		line-height: 50rpx;
		font-family: Source Han Sans CN;
		font-weight: 400;
		color: #492A00;
	}
	
	.secondtxt {
		width: 100%;
		font-size: 26rpx;
		line-height: 50rpx;
		font-family: Source Han Sans CN;
		font-weight: 400;
		color: #492A00;
		text-align: left;
		margin-left: 30rpx;
		margin-right: 30rpx;
	}
	
	.buttomafrim {
		width: 300rpx;
		height: 60rpx;
		background: #E36C54;
		border-radius: 40rpx;
		font-size: 30rpx;
		font-family: Source Han Sans CN;
		font-weight: 400;
		color: #FFFFFF;
		line-height: 60rpx;
		text-align: center;
		position: absolute;
		bottom: 10rpx;
		left: 150rpx;
	}
	
	.wximage{
		width: 100%;
		height: 400rpx;
		text-align: center;
		.wimage{
			height: 400rpx;
			width: 400rpx;
		}
	}
	
	.unipopup {
		height: 690rpx;
		width: 600rpx;
		background-color: #FFFFFF;
		font-size: 28px;
		border-radius: 24rpx;
		padding-bottom: 20rpx;
		z-index: 2;
		padding-top: 60rpx;
	
		image {
			width: 100%;
			height: 120rpx;
			border-top-left-radius: 24rpx;
			border-top-right-radius: 24rpx;
		}
		position: relative;
	}
	
	.renovation {
		width: 100rpx;
		height: 28rpx;
		flex: 1;
		background: #E8E8E8;
		border-radius: 4rpx;
		font-size: 20rpx;
		font-family: Source Han Sans CN;
		font-weight: 400;
		color: #9A9A9A;
		line-height: 28rpx;
		text-align: center;
	}
	
	.online {
		width: 100rpx;
		height: 28rpx;
		flex: 1;
		background: #E3F6E4;
		border-radius: 4rpx;
		font-size: 20rpx;
		font-family: Source Han Sans CN;
		font-weight: 400;
		color: #E36C54;
		line-height: 28rpx;
		text-align: center;
	}
	

	.joinus {
		height: 200rpx;
		background-color: #dfddde;
		display: flex;
		align-items: center;
		justify-content: center;

		image {
			width: 90%;
			height: 100%;
		}
	}
	
	.distance {
		font-size: 22rpx;
		font-family: Source Han Sans CN;
		font-weight: 500;
		color: #555555;
		height: 18rpx;
		line-height: 18rpx;
		position: absolute;
		top: 196rpx;
		left: 25rpx;
	}

	.carousel-section {
		position: relative;
		// padding-top: 10px;
	}

	.rechargeAndHexiao {
		flex: 1;

		image {
			height: 112rpx;
			width: 331rpx;
			border-radius: 15rpx;
		}

		display: flex;
		align-items: center;
		justify-content: center;
	}

	.third {
		height: 150rpx;
		background-color: #dfddde;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.thirdcontent {
		display: flex;
		height: 140rpx;
		width: 96%;
		background-color: #FFFFFF;
		border-radius: 15rpx;
	}

	.searchimg {
		position: absolute;
		left: 38rpx;
		top: 10rpx;
		image{
			width: 65rpx;
			height: 65rpx;
		}
	}

	.carousel {
		width: 100%;
		height: 430rpx;

		.carousel-item {
			width: 100%;
			height: 100%;
			// padding: 0 28upx;
			overflow: hidden;
		}

		image {
			width: 100%;
			height: 100%;
			// border-radius: 10upx;
		}
	}

	.function {
		height: 200rpx;
		width: 100%;
		background-color: #dfddde;
		display: flex;
		justify-content: center;
		align-items: center;
	}

	.functioncontent {
		display: flex;
		width: 96%;
		height: 88%;
		background-color: #FFFFFF;
		border-radius: 15rpx;
	}

	.functionitem {
		flex: 1;
		display: flex;
		align-items: center;
		justify-content: center;
		flex-direction: column;
	}

	/* 搜索框 */
	.search-ico-1 {
		width: 40upx;
		height: 40upx;
		float: right;
	}

	.search-text {
		font-size: 14px;
		background-color: #FFFFFF;
		height: 65upx;
		line-height: 65rpx;
		width: 685rpx;
		border: 5rpx solid #E36C54;
		border-radius: 40rpx;
		padding-left: 100rpx;
	}

	.search-block {
		display: flex;
		flex-direction: row;
		padding-left: 35upx;
		position: relative;
		align-items: center;
		justify-content: center;
	}

	.search-ico-wapper {
		background-color: #FFFFFF;
		display: flex;
		flex-direction: column;
		justify-content: center;
		padding: 0upx 0upx 0upx 40upx;
		border-bottom-left-radius: 18px;
		border-top-left-radius: 18px;
	}

	.search-ico-wapper1 {
		background-color: #FFFFFF;
		display: flex;
		flex-direction: column;
		justify-content: center;
		padding: 0upx 40upx 0upx 0upx;
		border-bottom-right-radius: 18px;
		border-top-right-radius: 18px;
	}

	.shadow {
		width: 638upx;
		height: 60upx;
		border-radius: 18px;
		-moz-box-shadow: 0 0 10px #e6e6e6;
		-webkit-box-shadow: 0 0 10px #e6e6e6;
		box-shadow: 0 0 10px #e6e6e6;
		position: relative;
		top: -90upx;
		left: 60upx;
	}

	.video-content {
		width: 100%;
		height: 256rpx;
		display: flex;
		// padding-left: 80rpx;
		// padding-top: 10rpx;
	}

	.video-describe {
		display: inline-block;
		vertical-align: top;
		width: 380rpx;
		padding-top: 28rpx;
		padding-left: 5rpx;
	}

	.video-list {
		width: 100%;
		height: auto;
		box-sizing: border-box;
	}

	.video-tit {
		height: 54rpx;
		line-height: 54rpx;
		font-size: 30rpx;
		font-family: Source Han Sans CN;
		font-weight: 500;
		color: #1A1A1A;
		display: inline-block;
		vertical-align: top;
		letter-spacing: 1rpx;
		overflow: hidden;
		text-overflow: ellipsis;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
	}
	
	.righticon {
		color: #E36C54;
		margin-top: 33rpx;
		margin-left: 10rpx;
	}
	
	.right {
		width: 130rpx;
		position: relative;
	}
	
	.tag {
		width: 100rpx;
		height: 28rpx;
		flex: 1;
		text-align: center;
		background: linear-gradient(90deg, #FFE2AE 0%, #E3B97F 100%);
		border-radius: 4rpx;
		font-size: 20rpx;
		font-family: Source Han Sans CN;
		font-weight: 400;
		color: #492A00;
		line-height: 28rpx;
		float: right;
		margin-left: 10rpx;
	}

	.video-reader {
		font-size: 22rpx;
		font-weight: 200;
		color: #666;
		letter-spacing: 2rpx;
		overflow: hidden;
		white-space: nowrap;
		text-overflow: ellipsis;
		-o-text-overflow: ellipsis;
	}
	
	.storelist {
		flex: 232rpx;
		padding-left: 22rpx;
		padding-top: 28rpx;
		image {
			width: 200rpx;
			height: 200rpx;
			border-radius: 8rpx;
			box-shadow: 0 0 2px #E36C54;
		}
	}
	
	.main-func-content {
		width: 100%;
		height: 300rpx;
		padding: 0 15rpx;
		box-sizing: border-box;
		background-color: #dfddde;
		display: flex;
		justify-content: space-between;
		align-items: center;

		.jiameng-content {
			flex: 1;
			height: 280rpx;
			background-color: #ffffff;
			border-top-left-radius: 15rpx;
			border-top-right-radius: 15rpx;
			border-bottom-left-radius: 15rpx;
			border-bottom-right-radius: 15rpx;
			display: flex;
			flex-direction: column;
			justify-content: flex-end;
			align-items: center;

			.main-title {
				font-size: 38rpx;
				font-weight: bold;
			}

			.sub-title {
				font-size: 22rpx;
				color: #B2B2B2;
				padding-bottom: 5rpx;
			}
		}

		.tuancan-content {
			flex: 1;
			margin-left: 30rpx;
			height: 280rpx;
			background-color: #ffffff;
			border-top-left-radius: 15rpx;
			border-top-right-radius: 15rpx;
			border-bottom-left-radius: 15rpx;
			border-bottom-right-radius: 15rpx;
			display: flex;
			flex-direction: column;
			justify-content: flex-end;
			align-items: center;

			.main-title {
				font-size: 38rpx;
				font-weight: bold;
			}

			.sub-title {
				font-size: 22rpx;
				color: #B2B2B2;
			}
		}
	}
	
	.cate-section {
		display: flex;
		justify-content: space-between;
		align-items: center;
		flex-wrap: wrap;
		padding: 10rpx 20rpx;
		background-color: #dfddde;

		.cate-item {
			flex: 1;
			height: 340upx;
			background-color: #ffffff;
			border-radius: 15upx;
			display: flex;
			flex-direction: column;
			justify-content: flex-end;
			align-items: center;

			.chuzhi-item {
				display: flex;
				justify-content: space-between;
				align-items: center;
				height: 200upx;

				.chuzhi-img {
					flex: 1;
					margin-right: 20rpx;
				}

				.chuzhi-desc {
					flex: 2;
					display: flex;
					flex-direction: column;
					justify-content: flex-start;
					align-items: center;
				}
			}

			.common-split {
				height: 0;
				border: 1px dashed #dfddde;
				width: 375upx;
			}

			.jifen-item {
				display: flex;
				justify-content: space-between;
				align-items: center;
				height: 200upx;

				.jifen-img {
					flex: 1;
					margin-right: 20rpx;
				}

				.jifen-desc {
					flex: 2;
					display: flex;
					flex-direction: column;
					justify-content: flex-start;
					align-items: center;
				}
			}

			.main-title {
				font-size: 38rpx;
				font-weight: bold;
			}

			.sub-title {
				font-size: 22rpx;
				color: #B2B2B2;
			}
		}

		.cate-split {
			width: 0;
			border: 1px dashed #dfddde;
			height: 398upx;
		}

	}
	
	.zhaoshang-content{
		background-color: #dfddde;
		padding-left: 20rpx;
		padding-right: 20rpx;
		height: 200rpx;
		
		.zhaoshang-swiper{
			height: 200rpx;
			
			
			image{
				width: 100%;
				border-radius: 20rpx;
			}
		}
	}
	
	.tip-content{
		text-indent: 30rpx;
		margin-left: 30rpx;
		margin-right: 30rpx;
	}

</style>